#include "ScenarioPanel.h"

ScenarioPanel::ScenarioPanel(int xPos, int yPos,Widget* parent) :
		Container(xPos, yPos,NULL, parent) {
	getPosition(parcel);
}

void ScenarioPanel::setElements(std::list<Widget*> scenaryElements) {
	Widget* element = NULL;
	std::list<Widget*>::iterator it_aux;
	for (it_aux = scenaryElements.begin(); it_aux != scenaryElements.end();
			++it_aux) {
		element = (*it_aux);

		this->elements.push_back(element);

		add(element);
	}
}
